package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.product.ProductDto;
import com.atguigu.spzx.model.entity.product.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Windows
* @description 针对表【product(商品)】的数据库操作Mapper
* @createDate 2024-02-01 10:18:02
* @Entity com.atguigu.spzx.manager.Product
*/
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    /**
     * 查询商品list
     * @param productDto
     * @return
     */
    List<Product> findByPage(ProductDto productDto);

    /**
     * 获取product
     * @param id
     * @return
     */
    Product getProductById(Long id);
}




